<?php
	$keys = array_keys($_POST);
	$expo = sqlite_open($_GET["expo"]);
	$del_ids = array();
	foreach ($keys as $ids){
		if (strstr($ids, "item")){
			$del_ids[] = substr($ids, 5);
		}
	}
	
	foreach ($del_ids as $id){
 		$result = sqlite_query($expo, "DELETE FROM expo WHERE (id='".$id."')");
	}
	
	if ($result == true){
		oyster_log("SUCCESS", (string)$language->stati->value_9, "MonaLisa delete_child");
		$head->_template_assign("STATUS", (string)$language->stati->value_9);
	} else {
		oyster_log("ERROR", (string)$language->errors->value_21, "MonaLisa delete_child");
		$head->_template_assign("ERROR", (string)$language->errors->value_21);
	}
	sqlite_close($expo);
?>